package com.myway.service;

import com.myway.dto.common.JsonData;
import com.myway.pojo.TabMemberInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface LoginService {
    //获取验证码并存入session
    public String getCode(String phoneNumber, HttpServletRequest request);

    //手机短息验证登陆
    public JsonData phoneLogin(String phoneNumber, String code, HttpServletRequest request, HttpServletResponse response);

    //会员登陆
    JsonData membLogin(String keyword);

    //修改密码
    JsonData changePwd(HttpServletRequest request, String oldPwd, String newPwd, String verificationCode);

    //忘记密码
    JsonData forgetPwd(TabMemberInfo memberInfo);

    //获取邮箱验证码 并存入session
    public String getEmailCode(String email, HttpServletRequest request);

    //用户+邮箱验证
    public JsonData EmailVerific(String email, String newPwd);

    //邮箱验证码验证
    JsonData verificationEmail(String email, String code, HttpServletRequest request);

    //手机验证码验证
    JsonData verificationPhone(String phoneNum, String code, HttpServletRequest request);
}